def swap_words(str1:1) -> str:
    return " ".join(str1.split(" ")[::-1])
assert swap_words('foo bar') == 'bar foo'
assert swap_words('world hello') == 'hello world'
assert swap_words('cursed zxc') == 'zxc cursed'
assert swap_words('da net') == 'net da'
assert swap_words('qwertyuiop mnbvcxzas') == 'mnbvcxzas qwertyuiop'
assert swap_words('word1 word2') == 'word2 word1'
assert swap_words('potato cucumber') == 'cucumber potato'